# Maintainer: Maxime Gauduin <alucryd@archlinux.org>

pkgname=python-django-picklefield
pkgver=3.1.0
pkgrel=2
pkgdesc='A pickled object field for Django'
arch=(any)
url=https://github.com/gintas/django-picklefield
license=(MIT)
depends=(python-django)
makedepends=(
  git
  python-setuptools
)
_tag=cc222ad97210f18a9c5e48867cf9b03cceb75d97
source=(git+https://github.com/gintas/django-picklefield.git#tag=${_tag})
sha256sums=(SKIP)

pkgver() {
  cd django-picklefield

  git describe --tags | sed 's/^v//'
}

build() {
  cd django-picklefield

  python setup.py build
}

package() {
  cd django-picklefield

  python setup.py install --skip-build --root="${pkgdir}" --optimize=1 --skip-build
  install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-django-picklefield/
}

# vim: ts=2 sw=2 et:
